package com.bba.manager.common.model.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 采购详情表
 * </p>
 *
 * @author zzy
 * @since 2025-08-12
 */
@Getter
@Setter
@TableName("purchase_details")
public class PurchaseDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 采购订单号
     */
    @TableField("purchase_no")
    private Long purchaseNo;

    /**
     * 货物编号
     */
    @TableField("goods_no")
    private Long goodsNo;

    /**
     * 数量
     */
    @TableField("quantity")
    private Integer quantity;

    /**
     * 金额
     */
    @TableField("price")
    private BigDecimal price;

    @TableField("goods_name")
    private String goodsName;

      @TableId(value = "purchase_details_no", type = IdType.AUTO)
    private Integer purchaseDetailsNo;
}
